from django.http import JsonResponse
from django.shortcuts import render

# Create your views here.
from django.urls import converters
from django.views import View

from apps.app1.models import User


class Username(View):
    def get(self, request,username):
        print(username)
        converters




        count = User.objects.filter(username=username).count()
        return JsonResponse({'count': count, 'code': '0', 'errmsg': 'ok'})
